﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.HumanResource.Job
{
    public class TaskRole
    {
        [ForeignKey("TaskId")]
        public Task Task { get; set; }
        [Key, Column(Order=0)]
        public Guid TaskId { get; set; }
        [ForeignKey("RoleId")]
        public Role Role { get; set; }
        [Key, Column(Order=1)]
        public Guid RoleId { get; set; }
    }
}
